package com.atww.student_test.config;

import io.swagger.v3.oas.models.ExternalDocumentation;
import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.info.License;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 汪汪
 * @version 1.0
 * @data 2024/1/10 15:49
 * @bug退散
 */
@Configuration
public class MySwaggerConfig {
    @Bean
    public OpenAPI springShopOpenAPI() {
        return new OpenAPI()
                .info(new Info()
                        .title("学生信息测试接口")
                        .description("spring boot 实现学生管理接口")
                        .version("v0.0.1")
                        .license(new License().name("Apache 2.0").url("http://springdoc.org")))
                .externalDocs(new ExternalDocumentation()
                        .description("student Wiki Documentation")
                        .url("https://springshop.wiki.github.org/docs"));
    }
}
